﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	x:Class="Microsoft.Research.ScientificWorkflow.UIDesigner.ActivityImportWizards.WSActivityCustomization"
    xmlns:Toolkit="clr-namespace:Microsoft.Windows.Controls;assembly=WpfToolkit"
        xmlns:prsntr="clr-namespace:Microsoft.Research.ScientificWorkflow.UIDesigner.ActivityImportWizards;assembly=Microsoft.Research.ScientificWorkflow.UIDesigner"
	x:Name="UserControl"
	d:DesignWidth="634" d:DesignHeight="574">
	<UserControl.Resources>
        <HierarchicalDataTemplate x:Key ="catTree"  ItemsSource="{Binding Path=Children}"  >
            <StackPanel Orientation="Horizontal" Margin="2">                
                <Image Source="/Microsoft.Research.ScientificWorkflow.TridentUtilities;component/Images/ScientificWorkflow/ActivitiesSubFolder.png"                       
                       Width="16"                       
                       Height="16"                      
                       SnapsToDevicePixels="True"/>                
                <TextBlock Text="{Binding Path=Name}" Margin="5,0"/>            
            </StackPanel>
        </HierarchicalDataTemplate>
		<Style x:Key="TreeViewItemFocusVisual">
			<Setter Property="Control.Template">
				<Setter.Value>
					<ControlTemplate>
						<Rectangle/>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
        <Style TargetType="TreeViewItem" x:Key ="TreeSelectionStyle" >
            <Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}" />
            <EventSetter Event="Selected" Handler="ItemSelected"></EventSetter>
        </Style>

		<PathGeometry x:Key="TreeArrow" Figures="M0,0 L0,6 L6,0 z"/>
		<Style x:Key="ExpandCollapseToggleStyle" TargetType="{x:Type ToggleButton}">
			<Setter Property="Focusable" Value="False"/>
			<Setter Property="Width" Value="16"/>
			<Setter Property="Height" Value="16"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type ToggleButton}">
						<Border Width="16" Height="16" Background="Transparent" Padding="5,5,5,5">
							<Path Fill="Transparent" Stroke="#FF989898" x:Name="ExpandPath" Data="{StaticResource TreeArrow}">
								<Path.RenderTransform>
									<RotateTransform Angle="135" CenterX="3" CenterY="3"/>
								</Path.RenderTransform>
							</Path>
						</Border>
						<ControlTemplate.Triggers>
							<Trigger Property="IsMouseOver" Value="True">
								<Setter Property="Stroke" TargetName="ExpandPath" Value="#FF1BBBFA"/>
								<Setter Property="Fill" TargetName="ExpandPath" Value="Transparent"/>
							</Trigger>
							<Trigger Property="IsChecked" Value="True">
								<Setter Property="RenderTransform" TargetName="ExpandPath">
									<Setter.Value>
										<RotateTransform Angle="180" CenterX="3" CenterY="3"/>
									</Setter.Value>
								</Setter>
								<Setter Property="Fill" TargetName="ExpandPath" Value="#FF595959"/>
								<Setter Property="Stroke" TargetName="ExpandPath" Value="#FF262626"/>
							</Trigger>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<Style x:Key="TreeViewItemStyle1" TargetType="{x:Type TreeViewItem}">
			<Setter Property="Background" Value="Transparent"/>
			<Setter Property="HorizontalContentAlignment" Value="{Binding Path=HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
			<Setter Property="VerticalContentAlignment" Value="{Binding Path=VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
			<Setter Property="Padding" Value="1,0,0,0"/>
			<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
			<Setter Property="FocusVisualStyle" Value="{StaticResource TreeViewItemFocusVisual}"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type TreeViewItem}">
						<Grid>
							<Grid.ColumnDefinitions>
								<ColumnDefinition MinWidth="19" Width="Auto"/>
								<ColumnDefinition Width="Auto"/>
								<ColumnDefinition Width="*"/>
							</Grid.ColumnDefinitions>
							<Grid.RowDefinitions>
								<RowDefinition Height="Auto"/>
								<RowDefinition/>
							</Grid.RowDefinitions>
							<ToggleButton x:Name="Expander" Style="{StaticResource ExpandCollapseToggleStyle}" IsChecked="{Binding Path=IsExpanded, RelativeSource={RelativeSource TemplatedParent}}" ClickMode="Press"/>
							<Border x:Name="Bd" SnapsToDevicePixels="true" Grid.Column="1" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}">
								<Grid>
									<Grid.ColumnDefinitions>
										<ColumnDefinition Width="21.5"/>
										<ColumnDefinition Width="*" MinWidth="26.098"/>
									</Grid.ColumnDefinitions>
									<ContentPresenter HorizontalAlignment="Stretch" x:Name="PART_Header" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" ContentSource="Header" d:LayoutOverrides="Width" Grid.ColumnSpan="1" Grid.Column="1"/>
								</Grid>
							</Border>
							<ItemsPresenter x:Name="ItemsHost" Grid.Column="1" Grid.ColumnSpan="2" Grid.Row="1"/>
						</Grid>
						<ControlTemplate.Triggers>
							<Trigger Property="IsExpanded" Value="false">
								<Setter Property="Visibility" TargetName="ItemsHost" Value="Collapsed"/>
							</Trigger>
							<Trigger Property="HasItems" Value="false">
								<Setter Property="Visibility" TargetName="Expander" Value="Hidden"/>
							</Trigger>
							<Trigger Property="IsSelected" Value="true">
								<Setter Property="Background" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>
								<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.HighlightTextBrushKey}}"/>
							</Trigger>
							<MultiTrigger>
								<MultiTrigger.Conditions>
									<Condition Property="IsSelected" Value="true"/>
									<Condition Property="IsSelectionActive" Value="false"/>
								</MultiTrigger.Conditions>
								<Setter Property="Background" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
								<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
							</MultiTrigger>
							<Trigger Property="IsEnabled" Value="false">
								<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
							</Trigger>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
        <!--<Style TargetType="TreeViewItem">
            <Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}" /> 
            <EventSetter Event="Selected" Handler="FocusTreeViewItem"/>
        </Style>-->

		<DataTemplate x:Key="ParentDataTemplate">
			<StackPanel>
				<TextBlock Text="{Binding Mode=OneWay, XPath=jobName}"/>
				<TextBlock Text="{Binding Mode=OneWay, XPath=authorName}"/>
				<TextBlock Text="{Binding Mode=OneWay, XPath=createdDate}"/>
				<TextBlock Text="{Binding Mode=OneWay, XPath=lastModifiedDate}"/>
				<TextBlock Text="{Binding Mode=OneWay, XPath=description}"/>
				<TextBlock Text="{Binding Mode=OneWay, XPath=moreLink}"/>
			</StackPanel>
		</DataTemplate>
	</UserControl.Resources>

	<Grid x:Name="LayoutRoot">
		<Grid x:Name="LayoutRoot_Copy">
			<Grid>
				<Grid.RowDefinitions>
					<RowDefinition Height="55"/>
					<RowDefinition Height="*"/>
					<RowDefinition Height="45"/>
				</Grid.RowDefinitions>
				<Grid MouseLeftButtonDown="OnMouseLeftButtonDown">
					<Grid.Background>
						<LinearGradientBrush EndPoint="0.86,0.5" StartPoint="0.338,0.5">
							<GradientStop Color="#FF0088C2" Offset="0"/>
							<GradientStop Color="#FF0C89B9" Offset="0.996"/>
							<GradientStop Color="#FF6DCEF2" Offset="0.411"/>
						</LinearGradientBrush>
					</Grid.Background>
					<Grid Background="{x:Null}">
						<Grid HorizontalAlignment="Right" Width="170.545" Margin="0,0,100,0">
							<Path Fill="#33FFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="0" Margin="83,0,25.999,1.042" RenderTransformOrigin="0.5,0.5" Data="M0.5,7.001 C0.5,3.4105968 3.4105968,0.5 7.001,0.5 L84.303,0.5 C87.893403,0.5 90.804,3.4105968 90.804,7.001 L90.899001,32.196912 C90.899001,35.787315 87.893403,39.9038 84.303,39.9038 L7.001,45.48 C3.4105968,45.48 0.5,42.569403 0.5,38.979 z" VerticalAlignment="Bottom" Height="26.885">
								<Path.RenderTransform>
									<TransformGroup>
										<ScaleTransform ScaleX="1" ScaleY="1"/>
										<SkewTransform AngleX="0" AngleY="6.117"/>
										<RotateTransform Angle="0"/>
										<TranslateTransform X="0" Y="0.0050905405498014034"/>
									</TransformGroup>
								</Path.RenderTransform>
							</Path>
							<Path Fill="#26FFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="0" Margin="32,9.447,38.999,10.37" Width="99.546" RenderTransformOrigin="0.5,0.5" Data="M0.5,7.001 C0.5,3.4105968 3.4105968,0.5 7.001,0.5 L84.303,0.5 C87.893403,0.5 90.804,3.4105968 90.804,7.001 L90.899001,32.196912 C90.899001,35.787315 87.893403,39.9038 84.303,39.9038 L7.001,45.48 C3.4105968,45.48 0.5,42.569403 0.5,38.979 z" d:LayoutOverrides="Width">
								<Path.RenderTransform>
									<TransformGroup>
										<ScaleTransform ScaleX="1" ScaleY="1"/>
										<SkewTransform AngleX="0" AngleY="6.117"/>
										<RotateTransform Angle="0"/>
										<TranslateTransform X="0" Y="0.0050905405498014034"/>
									</TransformGroup>
								</Path.RenderTransform>
							</Path>
							<Path Fill="#19FFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="0" HorizontalAlignment="Right" Width="78.216" RenderTransformOrigin="0.5,0.5" Data="M0.5,7.001 C0.5,3.4105968 3.4105968,0.5 7.001,0.5 L84.303,0.5 C87.893403,0.5 90.804,3.4105968 90.804,7.001 L90.899001,32.196912 C90.899001,35.787315 87.893403,39.9038 84.303,39.9038 L7.001,45.48 C3.4105968,45.48 0.5,42.569403 0.5,38.979 z" VerticalAlignment="Top" Height="39.349" d:LayoutOverrides="VerticalAlignment">
								<Path.RenderTransform>
									<TransformGroup>
										<ScaleTransform ScaleX="1" ScaleY="1"/>
										<SkewTransform AngleX="0" AngleY="6.117"/>
										<RotateTransform Angle="0"/>
										<TranslateTransform X="0" Y="0.0050905405498014034"/>
									</TransformGroup>
								</Path.RenderTransform>
							</Path>
							<Path Fill="#33FFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="0" HorizontalAlignment="Left" Width="43.546" RenderTransformOrigin="0.5,0.5" Data="M0.5,7.001 C0.5,3.4105968 3.4105968,0.5 7.001,0.5 L84.303,0.5 C87.893403,0.5 90.804,3.4105968 90.804,7.001 L90.899001,32.196912 C90.899001,35.787315 87.893403,39.9038 84.303,39.9038 L7.001,45.48 C3.4105968,45.48 0.5,42.569403 0.5,38.979 z" VerticalAlignment="Bottom" Height="29.956" d:LayoutOverrides="VerticalAlignment">
								<Path.RenderTransform>
									<TransformGroup>
										<ScaleTransform ScaleX="1" ScaleY="1"/>
										<SkewTransform AngleX="0" AngleY="6.117"/>
										<RotateTransform Angle="0"/>
										<TranslateTransform X="0" Y="0.0050905405498014034"/>
									</TransformGroup>
								</Path.RenderTransform>
							</Path>
						</Grid>
						<Grid HorizontalAlignment="Stretch" Margin="10,7,10,7" d:LayoutOverrides="Height">
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="*"/>
								<ColumnDefinition Width="85"/>
							</Grid.ColumnDefinitions>
							<TextBlock VerticalAlignment="Center" Opacity="0.9" FontSize="22" FontWeight="Normal" Foreground="#FFFFFFFF" Text="Web Service Import Wizard" TextWrapping="Wrap" d:LayoutOverrides="Width, Height" HorizontalAlignment="Left" Margin="10,0,0,0"/>
						</Grid>
					</Grid>
				</Grid>
				<Grid HorizontalAlignment="Stretch" Grid.Row="1" Background="#FFFFFFFF">
					<Grid.ColumnDefinitions>
						<ColumnDefinition Width="160"/>
						<ColumnDefinition Width="*"/>
					</Grid.ColumnDefinitions>
					<Grid.RowDefinitions>
						<RowDefinition Height="*"/>
					</Grid.RowDefinitions>
					<Border VerticalAlignment="Stretch" BorderBrush="#7FFFFFFF" BorderThickness="0,1,0,1">
						<Border.Background>
							<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
								<GradientStop Color="#FFD7F2FF" Offset="0"/>
								<GradientStop Color="#FFE9F7FF" Offset="1"/>
							</LinearGradientBrush>
						</Border.Background>
						<Grid>
							<Ellipse Opacity="0.2" Margin="-23.551,77.549,31.551,0" VerticalAlignment="Top" Height="152" Stroke="#FF79A0B1" StrokeThickness="4">
								<Ellipse.Fill>
									<LinearGradientBrush EndPoint="0.227,0.713" StartPoint="0.754,0.319">
										<GradientStop Color="#FFB1D9EA" Offset="0"/>
										<GradientStop Color="#FFFFFFFF" Offset="1"/>
									</LinearGradientBrush>
								</Ellipse.Fill>
							</Ellipse>
							<Path Margin="-37,0.287,31.551,80" Stretch="Fill" Stroke="{x:Null}" StrokeThickness="8" Data="M-23.454706,14.287072 C56.315206,75.190537 188.41103,325.06957 104.0003,322.00009 49.000296,320.00009 -55.999743,262.00012 -55.999743,262.00012 z" d:IsLocked="True">
								<Path.Fill>
									<LinearGradientBrush EndPoint="0.297,0.769" StartPoint="1.112,0.095">
										<GradientStop Color="#994CAACC" Offset="0"/>
										<GradientStop Color="#00FFFFFF" Offset="1"/>
									</LinearGradientBrush>
								</Path.Fill>
							</Path>
							<Path Opacity="0.25" Margin="60.969,142,18,0" VerticalAlignment="Top" Height="87.549" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF79A6BB" StrokeThickness="4" Data="M1.6434267,13.181687 C1.5278295,12.965781 1.5000008,12.733671 1.5000002,12.499999 1.5000008,5.8725829 23.885764,0.5 51.500001,0.5 79.114236,0.5 101.5,5.8725829 101.5,12.499999 101.5,12.956978 101.39357,13.40799 101.16798,13.843109 M101.16798,13.843109 C98.388039,19.842779 77.210168,24.5 51.500001,24.5 24.859393,24.5 3.0850643,19.499594 1.6434267,13.181687 M1.6434267,13.181687 C3.0850643,19.499594 24.859393,24.5 51.500001,24.5 77.210168,24.5 98.388039,19.842779 101.16798,13.843109 L101.21464,13.86974 C101.21464,13.86974 101.38128,92.89801 101.38116,93.006851 73.904923,110.48533 28.841257,112.07041 1.7147708,94.022829 L1.4690155,12.771001" d:IsLocked="True"/>
							<Path Margin="73.796,193.441,31.204,118.559" Stretch="Fill" Stroke="{x:Null}" StrokeThickness="5" Data="M75.697496,-60.650322 C176.29612,41.323964 137.73331,104.20811 112.5,173.5 113.5,174.5 149.5,185.49969 149.5,185.49969 L42.164622,241.87339 14.5,137.4994 63.96099,156.89482 C108.07458,98.903818 136.05667,29.426964 75.697496,-60.650322 z" RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="55" Height="150" d:IsLocked="True">
								<Path.RenderTransform>
									<TransformGroup>
										<ScaleTransform ScaleX="1" ScaleY="1"/>
										<SkewTransform AngleX="0" AngleY="0"/>
										<RotateTransform Angle="9.554"/>
										<TranslateTransform X="0" Y="0"/>
									</TransformGroup>
								</Path.RenderTransform>
								<Path.Fill>
									<LinearGradientBrush EndPoint="0.645,0.92" StartPoint="0.652,-0.248">
										<GradientStop Color="#00FFFFFF" Offset="0"/>
										<GradientStop Color="#660088C2" Offset="1"/>
									</LinearGradientBrush>
								</Path.Fill>
							</Path>
							<Rectangle Opacity="0.2" RenderTransformOrigin="0.5,0.5" Margin="-40.123,0,63.344,74.132" VerticalAlignment="Bottom" Height="100" Fill="#FFFFFFFF" Stroke="#7F29A3D4" StrokeThickness="3" RadiusX="12" RadiusY="12" d:IsLocked="True">
								<Rectangle.RenderTransform>
									<TransformGroup>
										<ScaleTransform ScaleX="1" ScaleY="1"/>
										<SkewTransform AngleX="5" AngleY="10"/>
										<RotateTransform Angle="0"/>
										<TranslateTransform X="0" Y="0"/>
									</TransformGroup>
								</Rectangle.RenderTransform>
							</Rectangle>
							<Rectangle Opacity="0.2" RenderTransformOrigin="0.5,0.5" Margin="30.969,0,16.437,40.004" VerticalAlignment="Bottom" Height="80" Fill="#FFFFFFFF" Stroke="#FF79A6BB" StrokeThickness="5" RadiusX="12" RadiusY="12" d:IsLocked="True">
								<Rectangle.RenderTransform>
									<TransformGroup>
										<ScaleTransform ScaleX="1" ScaleY="1"/>
										<SkewTransform AngleX="0" AngleY="5"/>
										<RotateTransform Angle="0"/>
										<TranslateTransform X="0" Y="0"/>
									</TransformGroup>
								</Rectangle.RenderTransform>
							</Rectangle>
							<Grid Margin="52.5,0,68,1" Height="82" VerticalAlignment="Bottom" d:IsLocked="True">
								<Rectangle Fill="#FF66C9EE" Opacity="0.15" VerticalAlignment="Top" Height="5" Stroke="{x:Null}" StrokeThickness="5" RadiusX="0" RadiusY="0"/>
								<Rectangle Fill="#FF66C9EE" Margin="0,7,0,0" VerticalAlignment="Top" Height="5" Stroke="{x:Null}" StrokeThickness="5" RadiusX="0" RadiusY="0" Opacity="0.2"/>
								<Rectangle Fill="#FF66C9EE" Margin="0,14,0,0" VerticalAlignment="Top" Height="5" Stroke="{x:Null}" StrokeThickness="5" RadiusX="0" RadiusY="0" Opacity="0.25"/>
								<Rectangle Fill="#FF66C9EE" Margin="0,21,0,0" VerticalAlignment="Top" Height="5" Stroke="{x:Null}" StrokeThickness="5" RadiusX="0" RadiusY="0" Opacity="0.3"/>
								<Rectangle Fill="#FF66C9EE" Margin="0,28,0,0" VerticalAlignment="Top" Height="5" Stroke="{x:Null}" StrokeThickness="5" RadiusX="0" RadiusY="0" Opacity="0.35"/>
								<Rectangle Fill="#FF66C9EE" Margin="0,35,0,0" VerticalAlignment="Top" Height="5" Stroke="{x:Null}" StrokeThickness="5" RadiusX="0" RadiusY="0" Opacity="0.4"/>
								<Rectangle Fill="#FF66C9EE" Margin="0,0,0,35" VerticalAlignment="Bottom" Height="5" Stroke="{x:Null}" StrokeThickness="5" RadiusX="0" RadiusY="0" Opacity="0.45"/>
								<Rectangle Fill="#FF66C9EE" Margin="0,0,0,28" VerticalAlignment="Bottom" Height="5" Stroke="{x:Null}" StrokeThickness="5" RadiusX="0" RadiusY="0" Opacity="0.5"/>
								<Rectangle Fill="#FF66C9EE" Margin="0,0,0,21" VerticalAlignment="Bottom" Height="5" Stroke="{x:Null}" StrokeThickness="5" RadiusX="0" RadiusY="0" Opacity="0.55"/>
								<Rectangle Fill="#FF66C9EE" Margin="0,0,0,14" VerticalAlignment="Bottom" Height="5" Stroke="{x:Null}" StrokeThickness="5" RadiusX="0" RadiusY="0" Opacity="0.6"/>
								<Rectangle Fill="#FF66C9EE" Margin="0,0,0,7" VerticalAlignment="Bottom" Height="5" Stroke="{x:Null}" StrokeThickness="5" RadiusX="0" RadiusY="0" Opacity="0.65"/>
								<Rectangle Fill="#FF66C9EE" VerticalAlignment="Bottom" Height="5" Stroke="{x:Null}" StrokeThickness="5" RadiusX="0" RadiusY="0" Opacity="0.7"/>
							</Grid>
							<Ellipse Opacity="0.1" Margin="29.001,0,18,104.501" Fill="#FFFFFFFF" Stroke="#FF79A6BB" StrokeThickness="4" VerticalAlignment="Bottom" Height="112.999"/>
							<Ellipse Margin="29.001,87,51.999,0" VerticalAlignment="Top" Height="79" Stroke="{x:Null}" StrokeThickness="4">
								<Ellipse.Fill>
									<RadialGradientBrush>
										<GradientStop Color="#FFFFFFFF" Offset="0"/>
										<GradientStop Color="#00FFFFFF" Offset="1"/>
									</RadialGradientBrush>
								</Ellipse.Fill>
							</Ellipse>
							<Path Margin="24,98,68,0" VerticalAlignment="Top" Height="68" Stretch="Fill" Stroke="{x:Null}" StrokeThickness="4" Data="M56,120 L17,157 64,125 52,172 74,125 109,136 81,115 104,80 74,106 48,88 59,109 26,104 z">
								<Path.Fill>
									<RadialGradientBrush>
										<GradientStop Color="#FFFFFFFF" Offset="0"/>
										<GradientStop Color="#19FFFFFF" Offset="1"/>
									</RadialGradientBrush>
								</Path.Fill>
							</Path>
						</Grid>
					</Border>
					<Grid VerticalAlignment="Stretch" Grid.Column="1">
						<DockPanel HorizontalAlignment="Stretch" Margin="10,10,10,5" VerticalAlignment="Stretch">
							<Border CornerRadius="5,5,5,5" BorderThickness="1,1,1,1" BorderBrush="#FFC4C4C4" Background="#FFFFFFFF" Margin="0,0,0,0" DockPanel.Dock="Top">
								<Grid>
									<Grid.RowDefinitions>
										<RowDefinition Height="20"/>
										<RowDefinition Height="*"/>
									</Grid.RowDefinitions>
									<Border HorizontalAlignment="Stretch" Grid.RowSpan="1" CornerRadius="6,6,0,0" BorderThickness="0,0,0,1" BorderBrush="#FFE4E4E4">
										<Border.Background>
											<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
												<GradientStop Color="#FFEEEEEE" Offset="0"/>
												<GradientStop Color="#FFFFFFFF" Offset="1"/>
											</LinearGradientBrush>
										</Border.Background>
										<TextBlock Text="Configure Activity Details" TextWrapping="Wrap" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="10,0,0,0" FontSize="12"/>
									</Border>
									<Grid Height="Auto" Grid.Row="1" Grid.RowSpan="1" Margin="0,5,0,5">
										<Grid.ColumnDefinitions>
											<ColumnDefinition Width="115"/>
											<ColumnDefinition Width="*"/>
										</Grid.ColumnDefinitions>
										<Grid.RowDefinitions>
											<RowDefinition Height="Auto" MinHeight="25"/>
											<RowDefinition Height="Auto" MinHeight="25"/>
											<RowDefinition Height="Auto" MinHeight="25"/>
											<RowDefinition Height="Auto" MinHeight="25"/>
										</Grid.RowDefinitions>
										<TextBlock HorizontalAlignment="Right" VerticalAlignment="Top" Text="Name:" TextWrapping="Wrap" Margin="0,3,5,0"/>
										<TextBlock HorizontalAlignment="Right" Text="Icon:" TextWrapping="Wrap" d:LayoutOverrides="Height" VerticalAlignment="Top" Grid.Row="1" Margin="0,3,5,0"/>
										<TextBox BorderBrush="#FFCCCCCC" HorizontalAlignment="Left" Margin="0,0,0,5" VerticalAlignment="Top" Width="250" Grid.Column="1" Text="{Binding Path = ActivityName}" TextWrapping="NoWrap" x:Name="acitivtyGivenName" MaxLength="75"/>
										<TextBox Text="{Binding Path = ActivityImageSource}" TextWrapping="NoWrap" d:LayoutOverrides="Height" Grid.Column="1" Margin="0,0,0,5" Width="250" Grid.Row="1" HorizontalAlignment="Left" VerticalAlignment="Top" BorderBrush="#FFCCCCCC" x:Name="activityIconPath" MaxLength="512" IsEnabled="False"/>
										<Button HorizontalAlignment="Left" VerticalAlignment="Top" Content="Browse..." Grid.Row="1" Grid.Column="1" Margin="255,0,0,5" Width="70" Click="OnClickBrowse"/>
										<TextBox Text="{Binding Path = ActivityDescription}" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto" Grid.Column="1" Grid.RowSpan="1" Grid.Row="2" HorizontalAlignment="Left" VerticalAlignment="Top" Width="250" Height="50" Margin="0,0,0,5" x:Name="activityDesc" BorderBrush="#FFCCCCCC" MaxLines="10" MaxLength="300"/>
										<TextBlock HorizontalAlignment="Right" Text="Description:" TextWrapping="Wrap" Margin="0,3,5,0" d:LayoutOverrides="Height" Grid.Row="2" VerticalAlignment="Top"/>
										<TextBlock Text="Category:" TextWrapping="Wrap" Margin="0,3,5,0" VerticalAlignment="Top" d:LayoutOverrides="Width" Grid.Row="3" HorizontalAlignment="Right"/>
										<Border HorizontalAlignment="Stretch" Margin="0,0,10,0" x:Name="catPicker" VerticalAlignment="Stretch" Height="120" Grid.Column="1" Grid.Row="3" BorderBrush="#FFCCCCCC" Grid.RowSpan="1" Background="{x:Null}" BorderThickness="1,1,1,1">
                                            <TreeView Name="viewsTreeView" ItemTemplate="{StaticResource catTree}" ItemsSource="{Binding Path=CategoryList}" SelectedItemChanged="viewsTreeView_SelectedItemChanged" 
                                                      ItemContainerStyle="{StaticResource TreeSelectionStyle}">
                                            </TreeView> 
                                        </Border>
									</Grid>
								</Grid>
							</Border>
							<Border CornerRadius="5,5,5,5" BorderThickness="1,1,1,1" BorderBrush="#FFC4C4C4" Background="#FFFFFFFF" Margin="0,5,0,5" DockPanel.Dock="Top">
								<Grid>
									<Grid.RowDefinitions>
										<RowDefinition Height="20"/>
										<RowDefinition Height="*"/>
										<RowDefinition Height="32"/>
									</Grid.RowDefinitions>
									<Border HorizontalAlignment="Stretch" Grid.RowSpan="1" CornerRadius="6,6,0,0" BorderThickness="0,0,0,1" BorderBrush="#FFE4E4E4">
										<Border.Background>
											<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
												<GradientStop Color="#FFEEEEEE" Offset="0"/>
												<GradientStop Color="#FFFFFFFF" Offset="1"/>
											</LinearGradientBrush>
										</Border.Background>
										<TextBlock Text="Configure Activity Parameters" TextWrapping="Wrap" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="10,0,0,0" FontSize="12"/>
									</Border>
									<ScrollViewer x:Name ="configurableParamViewer"  Margin="10,5,0,8" Grid.Row="1" Grid.RowSpan="2" Height="Auto">
                                        <Toolkit:DataGrid Width="Auto" Height="Auto" BorderBrush="#FFB4B4B4" x:Name="dataGrid" CanUserResizeColumns="true" CanUserResizeRows="False" CanUserDeleteRows="False"  CanUserAddRows="False" AutoGenerateColumns="False" ItemsSource="{Binding Path=SelectedWebMethodParamList}" HorizontalGridLinesBrush="LightGray" VerticalGridLinesBrush="LightGray" SelectionMode="Single">
                                            <Toolkit:DataGrid.Columns>
                                                <Toolkit:DataGridTextColumn IsReadOnly ="true" Width="160" Binding="{Binding Path=WebMethodParamName}" Header="Web Method Parameter"></Toolkit:DataGridTextColumn>
                                                <Toolkit:DataGridTextColumn Width="130" Binding="{Binding Path=ActivityParamName}" Header="Activity Parameter"></Toolkit:DataGridTextColumn>
                                                <Toolkit:DataGridTextColumn IsReadOnly ="true" Binding="{Binding Path=ParameterDirection}" Header="Direction"></Toolkit:DataGridTextColumn>
                                                <Toolkit:DataGridTextColumn IsReadOnly ="true" Width="100" Binding="{Binding Path=ParamType}" Header="Type"></Toolkit:DataGridTextColumn>
                                                <Toolkit:DataGridTextColumn IsReadOnly ="true" Binding="{Binding Path=IsRequired}" Header="Required"></Toolkit:DataGridTextColumn>
                                            </Toolkit:DataGrid.Columns>
                                        </Toolkit:DataGrid>
									</ScrollViewer>
								</Grid>
							</Border>
						</DockPanel>
					</Grid>
				</Grid>
				<Grid HorizontalAlignment="Stretch" Width="Auto" Grid.Row="2">
					<Grid.Background>
						<LinearGradientBrush EndPoint="0.904,0.466" StartPoint="0.254,0.489">
							<GradientStop Color="#FFC2DCE8" Offset="0"/>
							<GradientStop Color="#FFE5F2F8" Offset="1"/>
							<GradientStop Color="#FFF0FAFF" Offset="0.513"/>
						</LinearGradientBrush>
					</Grid.Background>
					<StackPanel HorizontalAlignment="Right" VerticalAlignment="Center" Orientation="Horizontal" Margin="0,0,10,0">
						<Button Content="Back" Width="80" Margin="0,0,10,0" Click="OnClickBack"/>
						<Button Content="Preview" Width="80" Margin="0,0,10,0" Click="OnClickNext"/>
						<Button Content="Cancel" Width="80" Click="OnClickCancel"/>
					</StackPanel>
				</Grid>
			</Grid>
		</Grid>
	</Grid>
</UserControl>